package thread;

import lombok.extern.slf4j.Slf4j;


/**
 * @Author Klys
 * @Date 2023/6/4 10:29
 * @Description
 * @Version 1.0
 */
@Slf4j
public class ThreadLocalTest {

    public static void main(String[] args) {

        log.info("ThreadLocal测试");

        ThreadLocal<String> local = new ThreadLocal<>();
        local.set("token");
        local.remove();
        System.out.println(local.get());
    }
}
